home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / ZoomedVideo.p < prev   
Encoding:
Text File  |  1998-02-12  |  3.9 KB  |  144 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ZoomedVideo.p
  3.  
  4.      Contains:    PC Card Family Zoomed Video Driver Interface
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1996-1998 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT ZoomedVideo;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __ZOOMEDVIDEO__}
  28. {$SETC __ZOOMEDVIDEO__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ZoomedVideoIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __MACTYPES__}
  35. {$I MacTypes.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __DEVICES__}
  38. {$I Devices.p}
  39. {$ENDC}
  40.  
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46.  
  47. {  Control codes  }
  48.  
  49.  
  50. CONST
  51.     cscZVVideoEnable            = 2;                            {  Used to enable or disable ZV Video }
  52.     cscZVSetCurrentAnalogValue    = 3;                            {  Used to set brightness, contrast, etc. }
  53.     cscZVSetInput                = 9;                            {  Set video source to selected input }
  54.     cscZVSetInputStandard        = 11;                            {  Set the input to NTSC, PAL, or SECAM }
  55.     cscZVGetMaxSourceRect        = 12;                            {  Get Maximum Source Rect }
  56.  
  57. {  Status codes }
  58.     cscZVGetVideoEnable            = 2;                            {  Indicates whether ZV Video is enabled }
  59.     cscZVGetCurrentAnalogValue    = 3;                            {  Used to get brightness, contrast, etc. }
  60.     cscZVGetDefaultAnalogValue    = 4;
  61.     cscZVGetVSyncState            = 5;                            {  Used to look for a Vertical Sync on ZV Video }
  62.     cscZVGetInfo                = 6;                            {  Returns the ZV Information }
  63.     cscZVGetInputFlags            = 7;                            {  Returns the input flags. }
  64.     cscZVGetNumberOfInputs        = 8;                            {  Returns the number of video inputs }
  65.     cscZVGetInput                = 9;                            {  Zero-based input number }
  66.     cscZVGetInputFormat            = 10;                            {  Returns whether input is compsite/s-video }
  67.  
  68.  
  69. {
  70.   -----------------------------------------------------------------
  71.    Additional parameters for csInfoZV control call
  72.       A pointer to ZVInfo is passed in csParam[0] (and csParam[1])
  73.       which must be filled by the driver in response to this call.
  74. }
  75.  
  76.  
  77. TYPE
  78.     ZVFeatures                            = UInt32;
  79.  
  80. CONST
  81.     kZVHasAudio                    = $01;
  82.     kZVHasTVTuner                = $02;
  83.     kZVHasContrast                = $00010000;
  84.     kZVHasBrightness            = $00020000;
  85.     kZVHasSharpness                = $00040000;
  86.     kZVHasSaturation            = $00080000;
  87.     kZVHasHue                    = $00100000;
  88.  
  89.  
  90.  
  91. TYPE
  92.     ZVInfoPtr = ^ZVInfo;
  93.     ZVInfo = RECORD
  94.         features:                ZVFeatures;
  95.         currentFlags:            UInt32;
  96.         activeRect:                Rect;
  97.         isInterlaced:            BOOLEAN;
  98.         filler:                    SInt8;
  99.         reserved1:                UInt32;
  100.         reserved2:                UInt32;
  101.     END;
  102.  
  103.     ZVFlagRecordPtr = ^ZVFlagRecord;
  104.     ZVFlagRecord = RECORD
  105.         csFlag:                    BOOLEAN;
  106.         filler:                    SInt8;
  107.     END;
  108.  
  109. {
  110.   -----------------------------------------------------------------
  111.    Additional definitions for "AnalogCtlZV" control calls
  112.       A pointer to a ZVSetAnalogControlParam is passed to the driver
  113.       whenever the system needs to adjust one of the analog settings.
  114. }
  115.     ZVAnalogControlSelector                = UInt16;
  116.  
  117. CONST
  118.     kZVContrast                    = 1;                            {  Range:  0x0 <= no change to image, larger values increase the contrast }
  119.     kZVBrightness                = 2;                            {  Range:  0x0 <= darkest setting, 0xffff = lightest setting }
  120.     kZVSharpness                = 3;                            {  Range:  0x0 <= no sharpness filtering, 0xffff <= full sharpness filtering }
  121.     kZVSaturation                = 4;                            {  Range:  0x0 <= min saturation, 0xffff <= max saturation         }
  122.     kZVHue                        = 5;                            {  Range:  0x0 <= -180º shift in hue, 0xffff <= 179º shift, 0x8000 <=0º shift }
  123.     kZVBlackLevel                = 6;                            {  Range:  0x0 <= max black, 0xffff <= min black level }
  124.     kZVWhiteLevel                = 7;                            {  Range:  0x0 <= min white, 0xffff <= max white level }
  125.  
  126.  
  127. TYPE
  128.     ZVAnalogControlRecordPtr = ^ZVAnalogControlRecord;
  129.     ZVAnalogControlRecord = RECORD
  130.         whichControl:            ZVAnalogControlSelector;
  131.         value:                    UInt16;
  132.     END;
  133.  
  134. {$ALIGN RESET}
  135. {$POP}
  136.  
  137. {$SETC UsingIncludes := ZoomedVideoIncludes}
  138.  
  139. {$ENDC} {__ZOOMEDVIDEO__}
  140.  
  141. {$IFC NOT UsingIncludes}
  142.  END.
  143. {$ENDC}
  144.